Ensure harder a GtkStyleContext has a theming engine anytime
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 17 Jan 2011 02:56:47 +0000 (03:56 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 17 Jan 2011 03:43:42 +0000 (04:43 +0100)
gtk/gtkstylecontext.c

index 8e01b9c0b447445d19512f55701dbc1f601bea8e..e36bef4eb75fddd23c4b0285d84e36a3ede14786 100644 (file)
@@ -1165,6 +1165,10 @@ style_data_lookup (GtkStyleContext *context)
   gtk_style_properties_get (data->store, 0,
                             "engine", &priv->theming_engine,
                             NULL);
+
+  if (!priv->theming_engine)
+    priv->theming_engine = g_object_ref (gtk_theming_engine_load (NULL));
+
   return data;
 }